package com.example.officialwebsiteadmin.model.mapper;

import com.example.officialwebsiteadmin.model.entity.Articles;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.Date;
import java.util.List;

@Mapper
public interface ArticlesMapper {
    List<Articles> ArticlesList();
    List<Articles> ArticlesPaging(@Param("pagenum") Integer pagenum,@Param("pagesize") Integer pagesize);
    Boolean ArticlesDel(@Param("id") Integer id);
    Boolean ArticlesPut(Object data);
    Boolean ArticlesAdd(Object data);
    void ArticlesCoded(@Param("phone") String phoneNumberSet, @Param("code") String verificationCode, @Param("fdate") LocalDateTime formattedTime);
    void ArticlesUpCode(@Param("phone") String phoneNumberSet, @Param("code") String verificationCode, @Param("fdate") LocalDateTime formattedTime);
    Boolean subMsg(Object codeData);
}
